package com.kuang.pojo;

public class UserT {
    private String name;

    public UserT(){    //无参
        System.out.println(" UserT的【无参构造被创建】");
    }

    public String getName(){
        return name;
    }

    public void setNameY(String named) {//依赖注入 必须拥有
        this.name = named;
    }


    public void show(){ //方法
        System.out.println("方法name:"+name);
    }

    private void init_user(){
        System.out.println("创建对象后，初始化");
    }

    private  void destroy_user(){
        System.out.println("创建对象后，销毁");
    }


}
